package com.cloud.common.utils;

import com.cloud.system.service.ISysConfigService;
import com.cloud.utils.SpringUtils;
import com.cloud.utils.StringUtils;

public class ConfigUtils {

    /**
     * 根据Key 获取系统配置信息
     *
     * @param configKey
     * @return
     */
    public static String getConfigInfo(String configKey) {
        String resultData = null;
        if (StringUtils.isNotEmpty(configKey)) {
            resultData = SpringUtils.getBean(ISysConfigService.class).selectConfigByKey(configKey);
        }
        return resultData;
    }

}
